package de.vocabulary.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.ServiceDefTarget;

import de.vocabulary.client.service.VocabularyService;
import de.vocabulary.client.service.VocabularyServiceAsync;

public class VocabularyServiceProvider {

	
	public static VocabularyServiceAsync getService(){
		VocabularyServiceAsync service = 
				(VocabularyServiceAsync) GWT.create(VocabularyService.class);
		ServiceDefTarget serviceDef = (ServiceDefTarget) service;
		serviceDef.setServiceEntryPoint(GWT.getModuleBaseURL()
				+ "vocabularyService");
		return service;
	}

}
